package de.justphil.websocketclient;

import java.io.UnsupportedEncodingException;


public class WebSocketMessage {
	private byte[] message;


	public WebSocketMessage(final byte[] message) {
		this.message = message;
	}


	public String getText() {
		try {
			return new String(message, "UTF-8");
		}
		catch (UnsupportedEncodingException uee) {
			return null;
		}
	}
}
